#-*-encoding=utf-8-*-
name=u'leave_record'
title=u'请假'
description=u'该对象记录请假'
fields=(
    TextLineField(
        description='',
        title=u'请假事由',
        validation_exp=u'',
        write_condition=u'',
        size=18,
        default_value_exp=u'""',
        name=u'title'
),
    DateField(
        minutestep=1,
        description='',
        title=u'开始时间',
        showtime=True,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today() + datetime.timedelta(1)',
        name=u'start'
),
    DateField(
        minutestep=1,
        description='',
        title=u'截至时间',
        showtime=True,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today() + datetime.timedelta(10)',
        name=u'end'
),
    TextField(
        rows=5,
        description='',
        title=u'批复',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'reviewinfo'
),
    PersonSelectField(
        description='',
        title=u'申请人',
        validation_exp=u'',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'[request.principal.id]',
        name=u'applicant'
),
    TextField(
        rows=5,
        description='',
        title=u'详细说明',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'description'
),)


displayed_columns = [u'applicant', u'title', u'start', u'end']
fields_validation_script=ur""""""
